<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>布局 flex</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        .box {
            display: flex;
            flex-direction: row;
        }

        .inner {
            width: 100px;
            height: 100px;
            background: #8a4182;
            margin: 10px;

        }

        .inner2 {
            width: 100px;
            height: 150px;
            background: #8a4182;
            margin: 10px;

        }

        .box2 {
            display: flex;
            flex-direction: row;
            width: 500px;
            border: 1px solid red;
        }

        .box3 {
            display: flex;
            flex-direction: row;
            width: 500px;
            height: 400px;
            border: 1px solid red;
            flex-wrap: wrap;
            
            align-items: baseline;
        }
    </style>

</head>

<body>


    <div class="box">
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
    </div>

    <div class="box2">
            <div class="inner"></div>
            <div class="inner"></div>
            <div class="inner"></div>
            <div class="inner"></div>
            <div class="inner"></div>
            <div class="inner"></div>
            <div class="inner"></div>
        </div>

        <div class="box3">
                <div class="inner">1</div>
                <div class="inner2">2</div>
                <div class="inner">3</div>
                <div class="inner">4</div>
                <div class="inner2">5</div>
                <div class="inner">6</div>
                <div class="inner">7</div>
            </div>
            

</body>

</html>